import React from 'react';
import ReactDOM from 'react-dom';
import './index.less';
import registerServiceWorker from './registerServiceWorker';
import { Provider } from 'react-redux';

import CRouter from './routes/Router';
import store from './store/Store';

store.subscribe(function () {
    //console.log(store.getState());
});

ReactDOM.render(
    <Provider store={store}>
        <CRouter store={store} />
    </Provider>
 ,
  document.getElementById('root')
);
registerServiceWorker();
